
<a id="c{$comment_id}"></a>
{checkActionsTpl location="tpl_pligg_story_comments_single_start"}
<div class="comment-wrap">
<h4 class="grey sfont">
{$comment_age} {#PLIGG_Visual_Comment_Ago#} 
 {if $is_anonymous}游客{/if} 
&nbsp;&nbsp;&nbsp;
<a href="http://s.xiazaiquan.com/space.php?username={$user_username_urlencoded}" title='{$user_username}的个人主页'>{$user_username}</a>
</h4>
<p>{$comment_content}</p>
		<div class="subtext">
			{if $comment_parent eq 0 && $current_userid neq 0} 
				<a href = "javascript://" onClick="var replydisplay=document.getElementById('reply-{$comment_id}').style.display ? '' : 'none'; document.getElementById('reply-{$comment_id}').style.display = replydisplay;">{#PLIGG_Visual_Comment_Reply#}</a>
			{/if}
			
			{if $hide_comment_edit neq 'yes'}
				{if $isadmin eq 1}
					| <a href="{$edit_comment_url}">{#PLIGG_Visual_Comment_Edit#}</a>
				{else}	  
					{if $user_username eq $user_logged_in}
						| <a href="{$edit_comment_url}">{#PLIGG_Visual_Comment_Edit#}</a> 
					{/if}
				{/if}
			{/if} 
			
		</div>

	{if $comment_parent eq 0 && $current_userid neq 0} 
	{* display comment form if replying to a comment *}
		<div id="reply-{$comment_id}" style="display:none;" align="left"> 
			<fieldset><legend>{#PLIGG_Visual_Comment_Send#}</legend>
				<form action="" method="POST" id="thisform" style="display:inline;">
<textarea name="reply_comment_content-{$comment_id}" id="reply_comment_content-{$comment_id}" rows="5" cols="80"/>{$TheComment}</textarea><br/>			  
					<input type="submit" name="submit" value="{#PLIGG_Visual_Comment_Submit#}" class="commentBtn" />
					<input type="hidden" name="process" value="newcomment" />
					<input type="hidden" name="randkey" value="{$rand}" />
					<input type="hidden" name="link_id" value="{$comment_link}" />
					<input type="hidden" name="comment_parent_id" value="{$comment_id}" />
					<input type="hidden" name="user_id" value="{$current_userid}" />
				</form>	
			</fieldset>
		</div>
	{/if}	
	  	
</div>
{checkActionsTpl location="tpl_pligg_story_comments_single_end"}
<br clear="all" />
